#ifndef MODEL_H
#define MODEL_H
#include <QSqlDatabase>
/**
 * @brief The Model class - the functions of sql fundation
 */
class Model
{
    QSqlDatabase db;
public:
    Model();

    /**
     * @brief ConnectionInit
     * @return
     */
    static QSqlDatabase ConnectionInit();

    /**
     * @brief ConnectionInit - SQLite
     * @return
     */
    static QSqlDatabase ConnectionInit(QString);

    /**
     * @brief testConnection - check the drivers' availability
     * @return
     */
    bool testConnection();
};

#endif // MODEL_H
